package com.njym.java.security.app.biz;

import com.njym.java.security.app.entity.FamilyUserGroups;
import com.njym.java.security.app.entity.FamilyUserGroupsVo;
import com.njym.java.security.app.mapper.FamilyUserGroupsMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-22 16:44:11
 */
@Service
public class FamilyUserGroupsBiz extends BaseBiz<FamilyUserGroupsMapper,FamilyUserGroups> {
    @Resource
    private FamilyUserGroupsMapper familyUserGroupsMapper;

    public List<FamilyUserGroupsVo> queryGroupDetail(Integer groupId){
        return familyUserGroupsMapper.queryGroupDetail(groupId);
    }

    public int updateNum(Integer id){
        return familyUserGroupsMapper.updateNum(id);
    }

    public int reduceNum(Integer groupId){
        return familyUserGroupsMapper.reduceNum(groupId);
    }
}